import { createBrowserRouter } from 'react-router-dom'
import App from '../App'
import Home from '../props/home/Index'
import Message from '../props/message/Index'
import My from '../props/My/Index'
import Order from '../props/order/Index'
const routers = createBrowserRouter([
    {
        path: '/',
        element: <App></App>,
        children: [
            {index:true,element:<Home></Home>},
            {
                path: 'home',
                element: <Home></Home>
            },
            {
                path: 'message',
                element: <Message></Message>
            },
            {
                path: 'order',
                element: <Order></Order>
            },
            {
                path: 'my',
                element: <My></My>
            }
        ]
    },

])
export default routers